package com.wf.dal.mapper;


import com.github.pagehelper.Page;
import com.wf.model.entity.ProcessInstanceHistory;
import com.wf.model.request.ApplyHistoryJsonRequest;
import com.wf.model.request.ProcessInstanceHistoryRequest;
import com.wf.model.vo.ApplyApproveVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProcessInstanceHistoryMapper {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(ProcessInstanceHistory record);

    ProcessInstanceHistory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProcessInstanceHistory record);

    int updateByPrimaryKey(ProcessInstanceHistory record);

    Page<ProcessInstanceHistory> selectSelective(ProcessInstanceHistoryRequest bean);

    List<ProcessInstanceHistory> participatProcessList(@Param("userId") String userId);

//    Page<ApplyApproveVO> applyList(ApplyHistoryJsonRequest request);

    ProcessInstanceHistory searchProcessInstanceHistoryByInstanceId(@Param("processInstanceId") String processInstanceId);

//    Page<ApplyApproveVO> searchApproveHistory(ApplyHistoryJsonRequest request);


}